﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Automapping.Alterations;
using TrilhaImovel.Core.Entities;
using FluentNHibernate.Automapping;

namespace TrilhaImovel.Data.NHibernateMaps
{
    public class RealEstateAgencyMap : IAutoMappingOverride<RealEstateAgency>
    {
        public void Override(AutoMapping<RealEstateAgency> mapping)
        {
            mapping.Table("RealEstateAgency");

            mapping.Id(x => x.Id).Column("RealEstateAgencyId");
            mapping.Map(x => x.Name).Column("Name").Length(50).Not.Nullable();
        }
    }
}
